<% if @flag %>
    window.location.href = "/admin/course_weeks";
<%else%>
    alert("签到失败 请检查");
<%end%>   
